package com.dingyx.ps.model.po;

import com.dingyx.ps.model.PageEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;

/**
 * @Author: dingyx
 * @Date: 2023/12/23 上午2:53
 */
@Data
@ApiModel("用户地理位置参数")
public class LocationPO extends PageEntity{
    /**
     * 纬度
     */
    @NotNull(message = "纬度不能为空")
    @Digits(integer = 90,fraction = 10, message = "请输入正确的纬度")
    @ApiModelProperty("纬度")
    private Long latitude;
    /**
     * 经度
     */
    @NotNull(message = "经度不能为空")
    @Digits(integer = 180,fraction = 10, message = "请输入正确的经度")
    @ApiModelProperty("经度")
    private Long longitude;

    @ApiModelProperty("驿站名称-查询使用")
    private String postNameLike;
}
